{include file="public/header" /}
<blockquote class="layui-elem-quote">
    数据库添加
</blockquote>
<form class="layui-form layui-form-pane kllxs-form" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">数据表名称</label>
        <div class="layui-input-block">
            <input type="text" name="table" autocomplete="off" placeholder="请输入数据表名称" class="layui-input" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">数据表备注</label>
        <div class="layui-input-block">
            <input type="text" name="comment" autocomplete="off" placeholder="请输入数据表备注" class="layui-input" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">主键</label>
        <div class="layui-input-block">
            <input type="radio" name="default_id" value="true" title="是" checked>
            <input type="radio" name="default_id" value="false" title="否">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">时间</label>
        <div class="layui-input-block">
            <input type="radio" name="default_cuTime" value="true" title="是" checked>
            <input type="radio" name="default_cuTime" value="false" title="否">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">删除</label>
        <div class="layui-input-block">
            <input type="radio" name="default_del" value="true" title="是" checked>
            <input type="radio" name="default_del" value="false" title="否">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-inlink">
            <button class="layui-btn" lay-submit lay-filter="kllxs-submit">确认</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{include file="public/footer" /}
<script>

    layui.use(["form", "popup"], function () {
        var form = layui.form;
        var popup = layui.popup;

        form.on('submit(kllxs-submit)', function (data) {
            var field = data.field; // 获取表单全部字段值

            popup.formSubmit("", field)

            return false; // 阻止默认 form 跳转
        })
    })
</script>